﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="PRScreenWithKinect.GuestBook"
	x:Name="UserControl"
	xmlns:local="clr-namespace:PRScreenWithKinect.UI.Utility"
	d:DesignWidth="640" d:DesignHeight="480" Width="548" Height="863">
	<UserControl.Resources>

		<ControlTemplate x:Key="MyDataTemplate">
       		<Grid Height="126.5"  Width="70">
					<Image Source="{Binding balloonPath}" Stretch="Fill" Margin="4,0,0,-4.5"/>
					<TextBlock TextWrapping="Wrap" Text="{Binding name}" FontFamily="/PRScreenWithKinect;component/Fonts/#TH SarabunPSK" FontSize="18.667" Height="21.093" Margin="3,0,-7.187,25.407" d:LayoutOverrides="Width" VerticalAlignment="Bottom"/>
			</Grid>
        </ControlTemplate>
		 	 <Storyboard x:Key="bgGroundFX" RepeatBehavior="Forever" AutoReverse="True">
   
                 <DoubleAnimation		Storyboard.TargetName="PaperBG"
                                    Storyboard.TargetProperty=""
                                    From="0" To="-1552" Duration="0:1:0"
                                    />
				<DoubleAnimation		Storyboard.TargetName="PaperBack"
                Storyboard.TargetProperty=""
                From="0" To="-1076" Duration="0:1:0"/>
			</Storyboard>

	</UserControl.Resources>
	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="0.289*"/>
			<RowDefinition Height="0.711*"/>
		</Grid.RowDefinitions>
				
		<Grid x:Name="mainContent" Margin="0" Grid.RowSpan="2" Height="863">
			<Grid Margin="0" Width="548" Height="863" ClipToBounds="True">
				<Image x:Name="PaperBack" HorizontalAlignment="Left" Height="863" VerticalAlignment="Top" Width="1644" Source="/PRScreenWithKinect;component/Images/guestbookbg_2.png" Margin="0,0,-1644,0">
				<Image.RenderTransform>
						<TransformGroup>
							<TranslateTransform />
						</TransformGroup>
					</Image.RenderTransform>
				</Image>
				<Image x:Name="PaperBG" Source="/PRScreenWithKinect;component/Images/guestbookbg_1.png" Height="863" Width="2192" Margin="0,0,-1644,0" StretchDirection="UpOnly" Stretch="None" RenderTransformOrigin="0,0">
					<Image.RenderTransform>
						<TransformGroup>
							<TranslateTransform />
						</TransformGroup>
					</Image.RenderTransform>
				</Image>
			</Grid>
			<local:ScrollWithGesture x:Name="PaperScroll" Width="548" HorizontalScrollBarVisibility="Hidden" 
				VerticalScrollBarVisibility="Disabled" d:LayoutOverrides="HorizontalAlignment"  Margin="0" Height="733.5" VerticalAlignment="Top"  >
				<Canvas x:Name="Paper" Height="863" HorizontalAlignment="Left" Width="1096">
					<Canvas.OpacityMask>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="Black" Offset="0"/>
							<GradientStop Color="White" Offset="1"/>
						</LinearGradientBrush>
					</Canvas.OpacityMask>
					<Image x:Name="howToWritePanel" Source="/PRScreenWithKinect;component/Images/guestbook_intro.png" Panel.ZIndex="1" Height="375.5" Canvas.Left="576.5" Canvas.Top="91" Width="494"/>
					<Image x:Name="_qrcode" Height="163" Width="163" Panel.ZIndex="2" Canvas.Left="887.5" Canvas.Top="199"/>
					<Grid x:Name="LastGuestbook" Height="76" Width="494" Canvas.Left="576.5" Canvas.Top="454.833" d:LayoutOverrides="Width" >
						<Grid.Background>
							<ImageBrush ImageSource="/PRScreenWithKinect;component/Images/lastest_bg.png"/>
						</Grid.Background>
						<TextBlock x:Name="_lHeader" TextWrapping="Wrap" Text="Lastest by &quot;goonnow&quot; on 2012-02-2101" RenderTransformOrigin="-0.053,-0.251" FontFamily="TH SarabunPSK" FontSize="18.667" FontWeight="Bold" Margin="75.33,3,8,0" VerticalAlignment="Top"/>
						<Image x:Name="_lImage" Width="60" HorizontalAlignment="Left" Margin="10.669,7.334,0,8.666" Height="60"/>
						<TextBlock x:Name="_lText" TextWrapping="Wrap" Text="Helladjf;lasdfj;ala;ldksfj;lk j;laksdjf;lakjsdf;lkajsdf;lkj ;lksajdfoiwejrio;klmx,.vm " RenderTransformOrigin="-0.053,-0.251" FontFamily="TH SarabunPSK" FontSize="18.667" Margin="75.33,28.093,8,8"/>
					</Grid>
					<Image Height="105.69" Canvas.Left="308" Source="/PRScreenWithKinect;component/Images/write_guestbook.png" Canvas.Top="476" Width="215" RenderTransformOrigin="0.437,0.511"/>
				
				</Canvas>
			</local:ScrollWithGesture>
		</Grid>
		<Canvas x:Name="showDetail" Margin="0,0,0,8" Grid.RowSpan="2" d:IsHidden="True">
			<Canvas.RenderTransform>
				<TransformGroup>
					<TranslateTransform/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<Border BorderBrush="White" BorderThickness="20" Height="177" Canvas.Left="16" Canvas.Top="128.833" Width="514.667" Background="White">
				<Border.Effect>
					<BlurEffect Radius="24"/>
				</Border.Effect>
			</Border>
			<Grid Height="163" Canvas.Left="22" Canvas.Top="135.5" Width="502">
				
				<Image x:Name="_image" Margin="8,8.875,0,0" Height="60" VerticalAlignment="Top" Width="60" HorizontalAlignment="Left"/>
				
				<Path x:Name="_closeDetail" Data="M449,94.5 C449,94.5 445.5,137 493,137 L493,94.5 z" Fill="#FF5E5E5E" Stretch="Fill" Width="45.058" HorizontalAlignment="Right" Height="43.5" VerticalAlignment="Top"/>
				<TextBlock x:Name="_content" Margin="8,68.875,8,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="24" Height="83.03" FontFamily="/PRScreenWithKinect;component/Fonts/#TH SarabunPSK" Text="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" Foreground="Black"/>
				<TextBlock x:Name="_name" HorizontalAlignment="Right" Margin="0,12.875,241.383,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="29.333" FontFamily="/PRScreenWithKinect;component/Fonts/#TH SarabunPSK" Width="180.284" RenderTransformOrigin="-0.673,0.504" Foreground="Black" Height="30.625"><Run Language="th-th" Text="เติ้ล "/></TextBlock>
				<TextBlock x:Name="_time" TextWrapping="Wrap" Margin="80.333,43.5,0,0" FontFamily="/PRScreenWithKinect;component/Fonts/#TH SarabunPSK" Foreground="Black" Height="17.5" VerticalAlignment="Top" HorizontalAlignment="Left" Width="104"><Run Text="2012/10/12 14:50 pm"/></TextBlock>
				<TextBlock TextWrapping="Wrap" Text="x" HorizontalAlignment="Right" Margin="0,0,8,0" VerticalAlignment="Top" Height="23.206" Width="11.666" FontSize="21.333" Foreground="White"/>
			</Grid>
		</Canvas>
	</Grid>
    <UserControl.RenderTransform>
        <TransformGroup>
            <TranslateTransform />
        </TransformGroup>
    </UserControl.RenderTransform>
</UserControl>